home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cato
/
Xm
/
XmClipboardRegisterFormat.z
/
XmClipboardRegisterFormat
Wrap
Text File
|
1998-10-20
|
6KB
|
133 lines
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333UUUUXXXXNNNN))))IIIIXXXX SSSSyyyysssstttteeeemmmmXXXXmmmmVVVVCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt - A clipboard function that
registers a new format
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////XXXXmmmm....hhhh>>>>
####iiiinnnncccclllluuuuddddeeee <<<<XXXXmmmm////CCCCuuuuttttPPPPaaaasssstttteeee....hhhh>>>>
iiiinnnntttt XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt ((((_d_i_s_p_l_a_y, _f_o_r_m_a_t__n_a_m_e, _f_o_r_m_a_t__l_e_n_g_t_h))))
DDDDiiiissssppppllllaaaayyyy * _d_i_s_p_l_a_y;;;;
cccchhhhaaaarrrr * _f_o_r_m_a_t__n_a_m_e;;;;
iiiinnnntttt _f_o_r_m_a_t__l_e_n_g_t_h;;;;
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents version 1.2 of the Motif library.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt registers a new format. Each
format stored on the clipboard should have a length
associated with it; this length must be known to the
clipboard routines. Formats are known as targets in the
_I_n_t_e_r-_C_l_i_e_n_t _C_o_m_m_u_n_i_c_a_t_i_o_n _C_o_n_v_e_n_t_i_o_n_s _M_a_n_u_a_l (ICCCM). All
of the formats specified by the ICCCM conventions are
preregistered. Any other format that the application wants
to use must either be 8-bit data or be registered via this
routine. Failure to register the length of the data results
in incompatible applications across platforms having
different byte-swapping orders.
_d_i_s_p_l_a_y Specifies a pointer to the DDDDiiiissssppppllllaaaayyyy structure
that was returned in a previous call to
XXXXOOOOppppeeeennnnDDDDiiiissssppppllllaaaayyyy or XXXXttttDDDDiiiissssppppllllaaaayyyy.
_f_o_r_m_a_t__n_a_m_e Specifies the string name for the new format
(target).
_f_o_r_m_a_t__l_e_n_g_t_h Specifies the format length in bits (8, 16,
or 32).
RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
CCCClllliiiippppbbbbooooaaaarrrrddddBBBBaaaaddddFFFFoooorrrrmmmmaaaatttt
The _f_o_r_m_a_t__n_a_m_e must not be NULL, and the
_f_o_r_m_a_t__l_e_n_g_t_h must be 8, 16, or 32.
CCCClllliiiippppbbbbooooaaaarrrrddddSSSSuuuucccccccceeeessssssss
The function is successful.
CCCClllliiiippppbbbbooooaaaarrrrddddLLLLoooocccckkkkeeeedddd
The function failed because the clipboard was
Page 1 (printed 4/30/98)
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333UUUUXXXXNNNN))))IIIIXXXX SSSSyyyysssstttteeeemmmmXXXXmmmmVVVVCCCClllliiiippppbbbbooooaaaarrrrddddRRRReeeeggggiiiisssstttteeeerrrrFFFFoooorrrrmmmmaaaatttt((((3333XXXX))))
locked by another application. The
application can continue to call the function
again with the same parameters until the lock
goes away. This gives the application the
opportunity to ask if the user wants to keep
trying or to give up on the operation.
CCCClllliiiippppbbbbooooaaaarrrrddddFFFFaaaaiiiillll The function failed because the format was
already registered with this length.
RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
XXXXmmmmCCCClllliiiippppbbbbooooaaaarrrrddddSSSSttttaaaarrrrttttCCCCooooppppyyyy((((3333XXXX)))).
Page 2 (printed 4/30/98)